/*
 * @Author: ZephyrGao
 * @Date: 2024-02-21 11:41:16
 * @Description: 
 * Copyright (c) 2024 by ZephyrGao, All Rights Reserved. 
 */
import { App } from 'ant-design-vue';
import { defineStore } from 'pinia';
import { ref } from 'vue';
import type { MessageInstance } from 'ant-design-vue/es/message/interface';
import type { ModalStaticFunctions } from 'ant-design-vue/es/modal/confirm';
import type { NotificationInstance } from 'ant-design-vue/es/notification/interface';


export const usePresentStore = defineStore('present', 
  {
    state: () => ({  
      message: ref<MessageInstance>(), // 初始化 message 
      notification: ref<NotificationInstance>(), // 初始化 notification 
      modal: ref<Omit<ModalStaticFunctions, 'warn'>>({} as any), // 初始化 modal 为一个空对象
    }),
    actions: {  
      // 在这里定义 actions，如果需要的话  
    },  
    getters: {  
      // 在这里定义 getters，如果需要的话  
    },  
  }
);